//
//  XMPointsCollectionViewCell.m
//  XunMi
//
//  Created by MacBook on 2024/4/18.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMPointsCollectionViewCell.h"
#import "XMPointsModel.h"

@implementation XMPointsCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    kCornerRadius(_bgBtn, 7, 0, UIColor.clearColor);
    [self.bgBtn setBackgroundImage:[UIImage imageWithColor:kHEX(@"#F5F5F5")] forState:UIControlStateNormal];
}

- (void)setModel:(XMPointsModel *)model {
    _model = model;
    self.titleLa.text = kStringFormat(@"提现%@元", model.amount);
    self.pointLa.text = kStringFormat(@"(消耗%@积分)", model.score);
    self.bgBtn.selected = model.selected;
}

@end
